<%inherit file="base.mako"/>

${next.body()}

<%def name="build_menus(selected='articles')">
<%
menus = (
    ("articles", url('new_article'), "manage articles"),
    ("settings", url(controller="settings", action="general"), "blog settings"),
    ("authorizations", url.current(controller="authorizations"), "blog management"),
)
%>

<ul>
% for name, link, desc in menus:
  % if name == selected:
  <li id="${name.replace(' ', '-')}" class="selected"><a href="${link}" title="${_(desc)}">${name.capitalize()}</a></li>
  % else:
  <li id="${name.replace(' ', '-')}"><a href="${link}" title="${_(desc)}">${name.capitalize()}</a></li>
  % endif
% endfor
</ul>
</%def>  
